package org.hamster.multidropbox.dropbox.event
{
	import flash.events.Event;
	
	public class AppDropboxEvent extends Event
	{
		
		public static const DROPBOX_REQUEST_TOKEN_REQUEST:String    = "dropboxRequestTokenRequest";
		public static const DROPBOX_REQUEST_TOKEN_RESULT:String 	= "dropboxRequestTokenResult";
		public static const DROPBOX_REQUEST_TOKEN_FAULT:String 		= "dropboxRequestTokenFault";
		
		public static const DROPBOX_ACCESS_TOKEN_REQUEST:String     = "dropboxAccessTokenRequest";
		public static const DROPBOX_ACCESS_TOKEN_RESULT:String 		= "dropboxAccessTokenResult";
		public static const DROPBOX_ACCESS_TOKEN_FAULT:String 		= "dropboxAccessTokenFault";
		
		public static const DROPBOX_METADATA_REQUEST:String			= "dropboxMetadataRequest";
		public static const DROPBOX_METADATA_RESULT:String			= "dropboxMetadataResult";
		public static const DROPBOX_METADATA_FAULT:String			= "dropboxMetadataFault";
		
		public static const DROPBOX_METADATA_LIST_REQUEST:String		= "dropboxMetadataListRequest";
		public static const DROPBOX_METADATA_LIST_RESULT:String			= "dropboxMetadataListResult";
		public static const DROPBOX_METADATA_LIST_FAULT:String			= "dropboxMetadataListFault";
		
		public static const DROPBOX_ACCOUNT_INFO_REQUEST:String		= "dropboxAccountInfoRequest";
		public static const DROPBOX_ACCOUNT_INFO_RESULT:String		= "dropboxAccountInfoResult";
		public static const DROPBOX_ACCOUNT_INFO_FAULT:String		= "dropboxAccountInfoFault";
		
		public static const DROPBOX_STORAGE_SAVE_REQUEST:String     = "dropboxStorageSaveRequest";
		public static const DROPBOX_STORAGE_SAVE_RESULT:String      = "dropboxStorageSaveResult";
		public static const DROPBOX_STORAGE_SAVE_FAULT:String       = "dropboxStorageSaveFault";
		
		public static const DROPBOX_STORAGE_LOAD_REQUEST:String     = "dropboxStorageLoadRequest";
		public static const DROPBOX_STORAGE_LOAD_RESULT:String      = "dropboxStorageLoadResult";
		public static const DROPBOX_STORAGE_LOAD_FAULT:String       = "dropboxStorageLoadFault";
		
		public static const DROPBOX_LINK_FOLDERS_REQUEST:String		= "dropboxLinkFoldersRequest";
		public static const DROPBOX_LINK_FOLDERS_RESULT:String		= "dropboxLinkFoldersResult";
		public static const DROPBOX_LINK_FOLDERS_FAULT:String		= "dropboxLinkFoldersFault";
		
		public static const DROPBOX_LINK_FOLDERS_SAVE_REQUEST:String	= "dropboxLinkFoldersSaveRequest";
		public static const DROPBOX_LINK_FOLDERS_SAVE_RESULT:String		= "dropboxLinkFoldersSaveResult";
		public static const DROPBOX_LINK_FOLDERS_SAVE_FAULT:String		= "dropboxLinkFoldersSaveFault";

		public static const DROPBOX_LINK_FOLDERS_UPLOAD_REQUEST:String	= "dropboxLinkFoldersUploadRequest";
		public static const DROPBOX_LINK_FOLDERS_UPLOAD_RESULT:String	= "dropboxLinkFoldersUploadResult";
		public static const DROPBOX_LINK_FOLDERS_UPLOAD_FAULT:String	= "dropboxLinkFoldersUploadFault";
		
		/**
		 * Notification, dispatched when the client list has been changed
		 */
		public static const DROPBOX_CLIENT_CHANGE:String			= "dropboxClientChange";
		/**
		 * Event, dispatched when the dropbox client status has been changed
		 */
		public static const CLIENT_STATUS_CHANGED:String			= "clientStatusChanged";
		/**
		 * Notification, dispatched when the link folders list has been changed
		 */
		public static const DROPBOX_LINK_FOLDERS_CHANGE:String		= "dropboxLinkFoldersChange";
		
		public var oldStatus:int;
		public var newStatus:int;
		
		public function AppDropboxEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
	}
}